You are here: Record management > Rule testing > PegaUnit testing > Configuring property assertions

Configuring property assertions

You can configure property assertions to compare the expected value of one or more properties with the actual values returned by a rule.

  1. Complete one of the following steps:
  2. Complete one of the following actions:

  3. From the Assertion type list, select Property.

  4. Specify the page that contains the properties that you want to add or modify.

  5. Complete one of the following tasks:

  6. Select the property or page that you want to add. You can search for a property or its value by entering text in the search bar and pressing Enter.

    If you select a page, all embedded pages and properties from the page are added. Added properties appear in the right pane.

  7. From the Comparator list, select the comparator that you want to use to compare the property with a specified value.

  8. In the Value field, either enter a value with which to compare the property or open the Expression Builder by clicking the Gear icon to enter an expression that is used to provide the value.

  9. Note: The Gear icon does not appear until after you have saved the rule form.

  10. Optional: To add a comment, click the Add commentadd comment icon icon, enter a comment, and click OK.

  11. If you are adding properties using the property panel, click Done.

  12. Click Save in the rule form.